package com.kunya.product.po;

import java.math.BigDecimal;
import java.util.Date;

public class Cart {
    private Long cartId;
    private Long userId;
    private Long productSpecNumber;
    private Integer buyNumber;
    private Byte checkStatus;
    private String productName;
    private String productImgurl;
    private BigDecimal productPrice;
    private BigDecimal productTotal;
    private Date createTime;
    private Date updateTime;

    public Cart(Long cartId, Long productSpecNumber, Long userId, Integer buyNumber, Byte checkStatus, String productName, String productImgurl, BigDecimal productPrice, BigDecimal productTotal, Date createTime, Date updateTime) {
        this.cartId = cartId;
        this.productSpecNumber = productSpecNumber;
        this.userId = userId;
        this.buyNumber = buyNumber;
        this.checkStatus = checkStatus;
        this.productName = productName;
        this.productImgurl = productImgurl;
        this.productPrice = productPrice;
        this.productTotal = productTotal;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Cart() {
        super();
    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public Long getProductSpecNumber() {
        return productSpecNumber;
    }

    public void setProductSpecNumber(Long productSpecNumber) {
        this.productSpecNumber = productSpecNumber;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(Integer buyNumber) {
        this.buyNumber = buyNumber;
    }

    public Byte getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Byte checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public String getProductImgurl() {
        return productImgurl;
    }

    public void setProductImgurl(String productImgurl) {
        this.productImgurl = productImgurl == null ? null : productImgurl.trim();
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductTotal() {
        return productTotal;
    }

    public void setProductTotal(BigDecimal productTotal) {
        this.productTotal = productTotal;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}